package com.vueblog.controller;

import com.alibaba.fastjson.JSONObject;
import com.vueblog.po.User;
import com.vueblog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AboutController {
    @Autowired
    private UserService userService;

    @GetMapping("/getAboutInfo")
    public Object getAboutInfo(){
        JSONObject jsonObject = new JSONObject();
        User user = userService.getShowAboutInfo();
        jsonObject.put("user",user);
        return jsonObject;
    }
}
